package com.service;

import com.dao.SuggestRepository;
import com.po.Suggest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SuggestServiceImpl implements SuggestService{

    @Autowired
    private SuggestRepository suggestRepository;


    @Override
    public List<Suggest> findAll() {
        return suggestRepository.findAll();
    }

    @Override
    public void save(Suggest suggest) {
        suggestRepository.save(suggest);
    }
}
